		<script>
function doubleclick(el, code) {
            if (el.getAttribute("data-dblclick") == null) {
                el.setAttribute("data-dblclick", 1);
                setTimeout(function () {
                    if (el.getAttribute("data-dblclick") == 1) {
                 //       onsingle();
                    }
                    el.removeAttribute("data-dblclick");
                }, 300);
            } else {
                el.removeAttribute("data-dblclick");
                location.href='{$smarty.const.base_admin}?act=add-page&id='+code;
            }
        }
</script>	<!-- BEGIN PAGE CONTAINER-->
         <div class="container-fluid">
            <!-- BEGIN PAGE HEADER-->   
            <div class="row-fluid">
               <div class="span12">
                   <!-- BEGIN THEME CUSTOMIZER-->
                   <div id="theme-change" class="hidden-phone">
                       <i class="icon-cogs"></i>
                        <span class="settings">
                            <span class="text">Theme Color:</span>
                            <span class="colors">
                                <span class="color-default" data-style="default"></span>
                                <span class="color-green" data-style="green"></span>
                                <span class="color-gray" data-style="gray"></span>
                                <span class="color-purple" data-style="purple"></span>
                                <span class="color-red" data-style="red"></span>
                            </span>
                        </span>
                   </div>
                   <!-- END THEME CUSTOMIZER-->
                  <!-- BEGIN PAGE TITLE & BREADCRUMB-->
                   <h3 class="page-title">
                     {$nameact}
                   </h3>
                   
                   <!-- END PAGE TITLE & BREADCRUMB-->
               </div>
            </div>
            <!-- END PAGE HEADER-->
            <!-- BEGIN ADVANCED TABLE widget-->
            <div class="row-fluid">
                <div class="span12">
                <!-- BEGIN EXAMPLE TABLE widget-->
                <div class="widget red">
                    <div class="widget-title">
                        <h4><i class="icon-reorder"></i> {$nameact}</h4>
                            <span class="tools">
                                <a href="javascript:;" class="icon-chevron-down"></a>
                                <a href="javascript:;" class="icon-remove"></a>
                            </span>
                    </div>
                    <div class="widget-body">
					<div class="clearfix">
                                     <div class="btn-group">
                                         <button id="editable-sample_new" class="btn green"  onclick="location.href='{$smarty.const.base_admin}?act=add-page'">
                                             Thêm Trang <i class="icon-plus"></i>
                                         </button>
                                     </div>
                                 </div>
								 <div class="space15"></div>
                        <table class="table table-striped table-bordered" id="sample_1">
                            <thead>
                            <tr>
                                <th width="10%">STT</th>
								<th width="50%">Name</th>
								<th width="40%">Menu</th>
                            </tr>
                            </thead>
                            <tbody>
							{foreach from=$page item=pg}
						
					<tr class="odd gradeX" onclick="doubleclick(this, '{$pg.id}')">   
							<td >{counter}</td>
							<td class="table_title"><a href="{$smarty.const.base_admin}?act=add-page&id={$pg.id}">{$pg.name}</a></td>
							<td >{$pg.menuname}</td>
						</tr>
						{/foreach}
                            </tbody>
                        </table>
						<div class="pagination">
						<span class="pages">Page {$cur_page} of {$total}</span>
						{foreach from=$listpage item=pg}
							<a href="{$pg.link}" title="{$pg.title}">{$pg.title}</a>
						{/foreach}
					</div>
                    </div>
                </div>
                <!-- END EXAMPLE TABLE widget-->
                </div>
            </div>

            <!-- END ADVANCED TABLE widget-->
         </div>
         <!-- END PAGE CONTAINER-->